package com.itheima.Test11;

public class Demo11 {
    public static void main(String[] args) {
        /*
        有以下数组：
		int[] arr = {55,77,0,88,22,44,33};
	    请编程实现：将后四个数字依次前移一位，移动后，最后一位置设置为0.
         */
        int[] arr = {55,77,0,88,22,44,33};
        System.arraycopy(arr,3,arr,2,4);
        arr[arr.length-1]=0;
        for (int i = 0; i < arr.length; i++) {
            System.out.println(arr[i]);
        }
    }


}
